home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 2.0 - Programmer's Utilities Power Pack
/
Delphi 2.0 Programmer's Utilities Power Pack.iso
/
e_to_l
/
imlib201
/
u_p_size.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-15
|
2KB
|
94 lines
{Part of Imagelib VCL/DLL Library.
Written by Jan Dekkers and Kevin Adams}
unit U_p_size;
interface
uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
StdCtrls, ExtCtrls, Spin;
type
TPrintersize = class(TForm)
OKBtn: TBitBtn;
CancelBtn: TBitBtn;
Bevel1: TBevel;
WidthSpinEdit: TSpinEdit;
HeigthSpinEdit: TSpinEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
GroupBox1: TGroupBox;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
RadioButton3: TRadioButton;
RadioButton4: TRadioButton;
RadioButton5: TRadioButton;
RadioButton6: TRadioButton;
procedure FormActivate(Sender: TObject);
procedure RadioButton1Click(Sender: TObject);
procedure RadioButton2Click(Sender: TObject);
procedure RadioButton3Click(Sender: TObject);
procedure RadioButton4Click(Sender: TObject);
procedure RadioButton5Click(Sender: TObject);
procedure RadioButton6Click(Sender: TObject);
private
{ Private declarations }
bwt, bht : integer;
public
{ Public declarations }
end;
var
Printersize: TPrintersize;
implementation
{$R *.DFM}
procedure TPrintersize.FormActivate(Sender: TObject);
begin
bwt:= WidthSpinEdit.Value;
bht:=HeigthSpinEdit.Value;
end;
procedure TPrintersize.RadioButton1Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht;
WidthSpinEdit.Value:=bwt;
end;
procedure TPrintersize.RadioButton2Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht*2;
WidthSpinEdit.Value:=bwt*2;
end;
procedure TPrintersize.RadioButton3Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht*3;
WidthSpinEdit.Value:=bwt*3;
end;
procedure TPrintersize.RadioButton4Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht*4;
WidthSpinEdit.Value:=bwt*4;
end;
procedure TPrintersize.RadioButton5Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht*5;
WidthSpinEdit.Value:=bwt*5;
end;
procedure TPrintersize.RadioButton6Click(Sender: TObject);
begin
HeigthSpinEdit.Value:=bht*6;
WidthSpinEdit.Value:=bwt*6;
end;
end.